<!--
 * @Description: Location
 * @Author: rendc
 * @Date: 2021-09-09 09:59:11
 * @LastEditors: rendc
 * @LastEditTime: 2021-09-09 10:58:37
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Location</title>
</head>

<body>
  <button onclick="link()">测试按钮</button>
</body>
<script>
  // console.log(window.location == document.location);
  // console.log(window.location);
  function link() {
    // http://127.0.0.1:5500/ES5/day13/5-Location.html
    // location.assign("http://baidu.com")
    // window.location = "http://baidu.com"
    // location.href = "http://baidu.com"
    // location.replace("http://taobao.com")
    // location.reload(true);
    // window.open("http://baidu.com");

  }
</script>

</html>